package com.sduept.bigdata.iec61850.client;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.ssssssss.magicapi.core.config.MagicAPIProperties;
import org.ssssssss.magicapi.core.config.MagicPluginConfiguration;
import org.ssssssss.magicapi.core.model.Plugin;
import org.ssssssss.magicapi.core.service.MagicAPIService;

@Configuration
public class MagicIec61850Configuration implements MagicPluginConfiguration {

	private final MagicAPIProperties properties;

	@Autowired
	private MagicAPIService service;
	
	public MagicIec61850Configuration(MagicAPIProperties properties) {
		this.properties = properties;
	}


	@Override
	public Plugin plugin() {
		if(service!=null) {

		}
		else {
			System.out.println("@Autowired MagicAPIService ERROR");
		}
		return new Plugin("IEC61850服务");
	}
}
